
package com.mdd.common.aigc.enums;

/**
 * label 标签枚举
 */
public enum ModelEnum {
    DEEPSEEK_R1("deepseek-r1", "阿里deepseek-r1模型"),
    ;

    private String key;
    private String desc;

    ModelEnum(String key, String desc) {
        this.key = key;
        this.desc = desc;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public static String getDescByKey(String key) {
        for (ModelEnum item : ModelEnum.values()) {
            if (key.equals(item.getKey())) {
                return item.getDesc();
            }
        }
        return "";
    }
}
